package com.jiyun.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiyun.entity.Goods;
import com.jiyun.mapper.GoodsMapper;
import com.jiyun.service.IGoodsService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 聪哥哥
 * @since 2023-02-20
 */
@DubboService
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {


    @Autowired
    GoodsMapper goodsMapper;
    @Override
    public List<Goods> findGoodsByHid(Integer hid) {


        /**
         * 第一种方式
         * 1、双表联查，自己写sql
         */

        return goodsMapper.findGoodsByHid(hid);
    }
}
